package com.letoken.platform.repo.mall.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商城证件信息表
 * </p>
 *
 * @author 作者
 * @since 2023-04-20
 */
@Getter
@Setter
@TableName("app_mall_document_info")
@ApiModel(value = "AppMallDocumentInfo对象", description = "商城证件信息表")
public class AppMallDocumentInfo extends Model<AppMallDocumentInfo> {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("mall_id")
    private Integer mallId;

    @ApiModelProperty("入驻人身份证")
    @TableField("name")
    private String name;

    @ApiModelProperty("身份证号")
    @TableField("card")
    private String card;

    @ApiModelProperty("正面")
    @TableField("ID_front")
    private String idFront;

    @ApiModelProperty("反面")
    @TableField("ID_opposite")
    private String idOpposite;

    @ApiModelProperty("是否有营业执照0无 1有")
    @TableField("is_business")
    private Integer isBusiness;

    @ApiModelProperty("是否三证合一")
    @TableField("three_syndromes_in_one")
    private Integer threeSyndromesInOne;

    @ApiModelProperty("营业执照url")
    @TableField("business_url")
    private String businessUrl;

    @ApiModelProperty("统一社会信用代码")
    @TableField("credit_code")
    private String creditCode;

    @ApiModelProperty("0.固定有效期 1.长期")
    @TableField("validity")
    private Integer validity;

    @ApiModelProperty("有效期限")
    @TableField("validity_time")
    private LocalDateTime validityTime;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
